<extend name="Base/common" />
<block name="style">
	<link rel="stylesheet" href="__CSS__/User/mystage.css" />
	<!--使用首页的活动展示-->
</block>
<block name="body">
	<div class="text-align-center">
		<h3 style="margin: 0.7rem;">我参与的</h3>
	</div>
	<notempty name="myact">
		<foreach name="myact" item="v">
			<a class="ypre-article" style="background-image: url({$v.theme});" data-id="{$v.id}" onclick="show(this)">
				<div style="width:100%;height: 5rem;"></div>
				<if condition="$v.aetime elt time()">
					<div class="ypre-act-isover"><img src="__IMG__/over.png"/></div>
				<else/>
					<div class="ypre-act-isover"><img src="__IMG__/noover.png"/></div>
				</if>
				<div class="ypre-article-info">
					<p class="yinfo-title wid70">{$v.title}</p>
					<p><i class="fa fa-map-marker fc-graywhite ml2"></i>{$v.address}</p>
					<p><i class="fa fa-clock-o fc-graywhite"></i>{$v.atime|date='m月d日 H:i',###}--{$v.aetime|date='H:i',###}</p>
				</div>
			</a>
		</foreach>
		<else/>
		<div class="text-align-center mt-20">暂无数据！！！</div>
	</notempty>
	<input type="hidden" id="page" name="page" value="{$p}" />
	<if condition="$situation eq first">
		<div class="text-align-center btn-div">
			<button class="btn btn-primary" type="button" onclick="nextpage()">下一页</button>
		</div>
	</if>
	<if condition="$situation eq middle">
		<div class="text-align-center btn-div">
			<button class="btn btn-primary" type="button" onclick="backpage()">上一页</button>
			<button class="btn btn-primary" type="button" onclick="nextpage()">下一页</button>
		</div>
	</if>
	<if condition="$situation eq last">
		<div class="text-align-center btn-div">
			<button class="btn btn-primary" type="button" onclick="backpage()">上一页</button>
		</div>
	</if>
	<!--<div class="act" onclick="linkshow(this)" data-link="" data-id="">
		<img class="act-img" src="__UPLOAD_IMG__/activityimg/3.jpg" />
		<div class="act-info">
			<table class="pref-table">
				<tbody>
					<tr>
						<th>主题 :</th>
						<td>【主题主题主题主题】<span class="label label-danger">未开始</span></td>
					</tr>
					<tr>
						<th>时间 :</th>
						<td>2015-05-28 20:00 - 21:30</td>
					</tr>
					<tr>
						<th>地址 :</th>
						<td>广州正佳广场5楼广州正佳广场5楼</td>
					</tr>
				</tbody>
			</table>
		</div>
	</div>-->

</block>

<block name="script">
	<script>
		$(document).ready(function(){
			$("#stage_li").addClass("active");//左边的菜单栏亮起来
		});
		function show(o){
			var id = $(o).attr('data-id');
			location.href="__ROOT__/Activity/act_detail/id/"+id+'/shareaid/'+id+"/isshare/"+1;	
		}
		function nextpage(){
			var p = parseInt($('#page').val())+1;
			location.href='__ROOT__/User/mystage/p/'+p;
		}
		function backpage(){
			var p = parseInt($('#page').val())-1;
			location.href='__ROOT__/User/mystage/p/'+p;
		}
	</script>
</block>